/**
 * @version v1.0
 * @description:
 * @author: admin
 * @date: 2022/12/9 11:05
 * @copyright: 博为峰
 */
public class IfElseDemo {
    public static void main(String[] args) {
        int a = 1;

        /*if (a > 0) {
            System.out.println("正数");
        } else {
            System.out.println("负数");
        }*/

        /*if (a > 0)
            System.out.println("正数");
        else
            System.out.println("负数");*/

        if (a > 0) {
            if (a > 6) {
                System.out.println("a大于0且大于6");
            } else {
                System.out.println("a大于0但是小于6");
            }
        } else {

        }

        //定义一个int类型数，判断并输出是周几
    }
}
